﻿#include "EntrySpinBox.h"
#include <QWheelEvent>

EntrySpinBox::EntrySpinBox(QWidget *parent) : QSpinBox{parent} {
    setFocusPolicy(Qt::StrongFocus);
}

void EntrySpinBox::wheelEvent(QWheelEvent *event) {
    if(hasFocus()) {
        QSpinBox::wheelEvent(event);
    } else {
        event->ignore();
    }
}
